
package cn.beetech.demo.util;

public class HttpExecResult {
    /**
     * 响应状态码
     */
    private int code;

    /**
     * 响应数据
     */
    private String content;

    private long startTime;
    private long endTime;

    public String toString() {
        return "code="+code+"; content="+content+";";
    }

    public HttpExecResult(int code) {
        this.code = code;
        this.content = null;
    }

    public HttpExecResult(int code, String content) {
        this.code = code;
        this.content = content;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
